Hello Listers:
I just had an experience which might be of general interest to this group.
(If you've got a few minutes, read on)
I have a large APR that takes about 2 minutes to load. I customarily open
AV from a short cut on my desktop and then chose the open project option.
Because the APR was looking for an image file that resides on our network, I
copied that file to my c:\drive to make it load faster. When I pointed to
its new location, I got that dreaded Error message "Floating point
exception". OK. So shut down AV and reload. This time when I get to the
"Can't find .....etc", I click "Cancel". Uh-Oh .... "Floating point
exception". Tried a few variations on the theme (pun intended), with no
change in result .... I start to get that nasty panicky feeling in my gut
because there is NO way I want to reconstruct this project (all those
layouts........Oh no!).
Wait. Calm down. Remember that recent query to the list from someone who had
this very same problem. Do email search. Yes! There it is, Craig Von Hagen
with a solution from Santiago Mayo.
Tried solution one - Use the import command from the Project Menu. This
time I get "Floating point exception" followed by "Segmentation Violation".
Uh-Oh!
GoTo solution 2: Edit the APR to find corrupt data by process of
elimination.
Well, as an aside, I have a text editor that automatically opens text files
with the appropriate file extensions (txt,prn, etc), and out of habit I
double-clicked on my APR to start the search and replace process.
To my complete astonishment and relief, my project opened right up without
so much as a hiccup. SAVE AS ..! SAVE AS...!
I was so excited I had to tell you all! Go figure. And if I find out why,
I'll offer the next installment. In the meantime??
Richard Duncan
GeoEngineers, Inc.
8410 154th. Avenue NE
Redmond, WA 98052
425-861-6021
425-861-6050 (Fax)
rduncan@geoengineers.com
-----Original Message-----
From: owner-arcview@lists.directionsmag.com
[mailto:owner-arcview@lists.directionsmag.com]On Behalf Of
c_vhagen@igkw2.agric.za
Sent: Thursday, January 11, 2001 4:38 AM
To: ARCVIEW-L@ESRI.COM; arcview@lists.directionsmag.com
Subject: [AV] AV SUM Floating point exception error
ArcView -- www.quantdec.com
Thanks to Santiago Mayo...who responded within 5 minutes with a
comprehensive answer. Will be trying all the options.
Original question
> I've tried opening an apr and I get a floating-point exception
> error. Are there any thoughts on how to repair this and why it
> occurs. The apr was created on windows nt and gives the error on a
> windows 95 machine. My data contains only shp files and no grids
Answer
Cause:
A project file may get corrupted by system crashes, or operations that
yield one of these errors: Segmentation Violation, Floating Point
Exception,Invalid Operation, or Invalid Page Fault. The causes for
such situations are varied and are beyond the scope Answer: Given that
the extent of the damage to the project file is unknown, as it varies
from case to case, there are various options you may pursue to attemp
recovering a damaged project file; these are described below.Before
attempting the recovery process, make a copy of the damaged ".apr"
file under a different name. This backup copy may be needed to revert
to if some of the changes described below d
Basic recovery:
===============
Import the damaged project into a new project. Go to the "Project"
menu and choose the "Import", if it opens, you are done. Save this
project to a different file name. It is highly recommended that you
make and maintain a backup copy of your project file,
Data oriented project repair:
=============================
If the basic recovery process does not work, it may be that your
project file has coorrupt data or wrong data definitions. To determine
if this is the case open the ".apr" file in a text editor, and "Find
and replace" the drive letter of all the data sour If the project
opens, some of your data sets or the references to the datasets are
corrupt. You will need to use a process of elimination to determine
which data set is corrupt. Open a the ".apr" file in a text editor and
search for the string "Path:". Ea
(FN.958
Path: "c://sample.shp"
Use a textfile, or a piece of paper, to create a list of all data
sources, skip duplicate definitions. When you complete the list of all
the FileName objects/data sources in your project, you will need to do
a "project repair" on each data source to deter to page 46 of your
"Using ArcView GIS" book). For example, assume that your project file
contains the following data paths:
"c:/gisdata/pop_90.dbf"
"c:/gisdata/county.shp"
"c:/gisdata/images/backgrnd.tif"
Find and replace the pop_90.dbf string with something like "testing".
When ArcView reads the FileName object referring to "testing", it will
pause and ask you to find "c:/gisdata/testing". Click Cancel and see
if the ".apr" opens successfully. If it opens
Document oriented Project Repair:
=================================
If after removing all the data sets from the project it still does not
open, you probably have a corrupt document object. To determine if you
have a bad reference in your document list you will again use the
process of elimination. Restore the ".apr"file
/3.0
(ODB.1
FirstRootClassName: "Project"
Roots: 2
Version: 30
)
(Project.2
Name: "proj1.apr"
CreationDate: "Thursday, June 12, 1997 07:10:01"
GUIName: "Project"
Win: 3
CSMgr: 4
VisGUIWidth: 70
Doc: 5
Doc: 177
Doc: 143
Doc: 187
Doc: 39
ActiveDoc: 187
Buttons: 378
Buttons: 379
Buttons: 380
Dependencies: 381
Scripts: 382
WorkDir: 1178
WinX: 11
WinY: 4
WinW: 852
WinH: 594
SerialNumber: "555551111111"
SelColor: 1179
GUINames: 1180
GUINames: 1181
GUINames: 1182
GUINames: 1183
GUINames: 1184
GUINames: 1185
GUINames: 1186
The object of interest is "Project.2," which contains this list of
document objects::
Doc: 5
Doc: 177
Doc: 143
Doc: 187
Doc: 39
ActiveDoc: 187
To make sure the project can be salvaged at all you need to delete all
but one of the document references. It is recommended that you keep
the very first document in the list. If you have an Active Document,
you need to delete that one as well. Save the p
Notes:
You can keep the ".apr" file open in the text editor while you run the
above tests. I you are on a Windows plataform, and you are not
familiar with your text editor, you may want to memorize these key
sequences:
Ctrl+Z will Undo your last edit
Ctrl+F is the shortcut to Find (except in Notepad)
Ctrl+H is the shortcut to Find and Replace (except in Notepad)
Esc will dismiss a window
Remember to make and maintain a backup copy of your project file,
during the course of your work, in the eventuality it becomes corrupt
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to majordomo@lists.directionsmag.com and
put "unsubscribe arcview" in the message body.